/*
 * 作者: 张帆
 * 时间: 2017-04-12 
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {
	
	require("jquery");

	var c = require('app/utils/CommonUtils');
	var APIUtils = require('app/utils/APIUtils');
	var appInfo = require('app/AppInfo');
	var action_search = require('app/action/SearchIconFrmAction');
	var param = api.pageParam;	
	
	$("#back").click(function(){
		api.closeWin({
	    });
	});
	
	$("#authorization").click(function(){
		api.openWin({
	        name: 'AdminWin',
	        url: './AdminWin.html',
	        pageParam:api.pageParam
        });
	});
	$("#enroll").click(function(){
		api.openWin({
	        name: 'EnrollProWin',
	        url: './EnrollProWin.html',
	        pageParam:api.pageParam
        });
	});
	
	
	var customParam = api.pageParam;
	customParam.coverurl = "http://qiniucdn.haojs.com.cn/cover051304.jpg";
	
//	http://pili-live-hls.haojs.com.cn/haojslive/5914682aa3d5ec61350f0fe2.m3u8
//	rtmp://pili-publish.haojs.com.cn/haojslive/5914682aa3d5ec61350f0fe2?key=099599faaa1c4673
	customParam.teststreamid = "z1.haojslive.5914682aa3d5ec61350f0fe2";

//	http://pili-live-hls.haojs.com.cn/haojslive/5910dc30d425e16bec1c25b8.m3u8	
//	rtmp://pili-publish.haojs.com.cn/haojslive/5910dc30d425e16bec1c25b8?key=ab50190774bc824b
	customParam.prostreamid = "z1.haojslive.5910dc30d425e16bec1c25b8";
	customParam.roomuuid = "38322cf4-f8fb-4cf0-9979-f21d1dc0fa26";
	$("#custom1").click(function(){
		api.openWin({
	        name: 'LiveStatusManageWin',
	        url: './LiveStatusManageWin.html',
	        pageParam:customParam
        });
	});
	return;
});